﻿@model Forest.Cat.Web.Models.ButtonAdModel
<ul>
    @*@for (var i = 0; i < 8; i++)
    {
        <li><a href="@Model.Button1AdList.ElementAt(i).NavigatorUrl">
            <img src="@Url.Action("GetImage", new { id = Model.Button1AdList.ElementAt(i).Id })" width="115" height="52" alt="" /></a></li>
        <li class="@((i % 4) == 3 ? "last" : null)"><a href="@Model.Button2AdList.ElementAt(i).NavigatorUrl">
            <img src="@Url.Action("GetImage", new { id = Model.Button2AdList.ElementAt(i).Id })" width="115" height="52" alt="" /></a></li>
    }*@
    @for (var i = 0; i < Model.Button3AdList.Count(); i++)
    { 
        <li class="@((i % 8) == 7 ? "last" : null)"><a href="@Model.Button3AdList.ElementAt(i).NavigatorUrl" target="_blank" >
            <img src="@Url.Action("GetImage", new { id = Model.Button3AdList.ElementAt(i).Id })"   alt="" /></a></li>
    }
</ul>
